class Person{
	String name;//书上面没有给姓名变量
	char sex;
	int age;
	public Person(String pName,char pSex,int pAge) {
		this.name=pName;
		this.age =pAge;
		this.sex =pSex;
	}
	public String toString() {
		String s="姓名："+name+" 性别："+sex+" 年龄："+age;
		return s;
	}
}
public class CreatPerson {
	public static void main(String[] args) {
       Person p1=new Person("张三",'男',20);
       Person p2=new Person("李四",'女',28);
       p1.sex='女';
       System.out.println(p1.toString());
       p2.age =33;
       System.out.println(p2.toString());
       
	}

}
